package utils;

import java.nio.charset.StandardCharsets;

public class StrFilter {
    public static String filter(String str)
    {
        if(str == null)
            return "";
        str.replaceAll(" ","").replaceAll(",","").replaceAll("\\?","").replaceAll("or","");
//        str=new String(str.getBytes(StandardCharsets.ISO_8859_1),StandardCharsets.UTF_8);
        // 在这里添加其他逻辑，例如过滤特殊字符或其他操作
        return str;
    }
}
